﻿using Adalbertus.BudgetPlanner.Domain;
using FluentNHibernate.Mapping;

namespace Adalbertus.BudgetPlanner.Infrastructure.Mapping
{
    public class CashFlowTypeMap : ClassMap<CashFlowType>
    {
        public CashFlowTypeMap()
        {
            Id(x => x.Id);
            Map(x => x.Name).Not.Nullable();
            Map(x => x.Description);

            References(x => x.ExternalSource).Not.LazyLoad();

        }
    }
}
